# 创建 1x1 像素的透明 PNG 图片作为占位符
$base64 = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg=="
$bytes = [Convert]::FromBase64String($base64)

# 获取脚本所在目录
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Definition

# 定义需要创建的图片文件列表
$files = @(
    "home.png",
    "home-active.png",
    "publish.png",
    "publish-active.png",
    "profile.png",
    "profile-active.png",
    "like.png",
    "like-active.png",
    "comment.png",
    "arrow-right.png",
    "my-posts.png",
    "my-likes.png",
    "settings.png",
    "agreement.png",
    "privacy.png",
    "about.png",
    "avatar1.png",
    "avatar2.png",
    "avatar3.png"
)

# 创建图片文件
foreach ($file in $files) {
    $filePath = Join-Path $scriptDir $file
    Set-Content -Path $filePath -Value $bytes -Encoding Byte
    Write-Host "Created $filePath"
}

Write-Host "All placeholder images created successfully!"